package com.AdvancedDemos.单元测试_反射_注解.注解;


/*
使用自定义注解MyAnnotation1
 */
@MyAnnotation1(aaa = "亚连",/*bbb使用默认值*/ ccc = {"HTML", "JAVA", "PYTHON"}/*{}表示数组*/)

//@MyAnnotation2(value = "明世隐")
//↑等价于↓
@MyAnnotation2("明世隐")

@MyAnnotation3//可以用在类上
public class testMyAnnotation {

    @MyAnnotation1(aaa = "宫本武藏", bbb = false, ccc = {"a", "b", "c"})

    @MyAnnotation3//可以用在方法上
    public void test1() {

    }

    //    @MyAnnotation3//报错：'@MyAnnotation3' not applicable to field
    private String name;


}
